﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace BaiTapBatBuoc
{
    public partial class ChuViTamGiac : Form
    {
        public ChuViTamGiac()
        {
            InitializeComponent();
        }

        private void btnTinhChuVi_Click(object sender, EventArgs e)
        {
            Diem A = new Diem(double.Parse(txtAx.Text), double.Parse(txtAy.Text));
            Diem B = new Diem(double.Parse(txtBx.Text), double.Parse(txtBy.Text));
            Diem C = new Diem(double.Parse(txtCx.Text), double.Parse(txtCy.Text));
            TamGiac M = new TamGiac(A, B, C);
            lblKetQua.Text = M.ChuVi().ToString();
        }
    }
}
